import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { MarketFansListComponent } from './market-fans-list/market-fans-list.component';
import { MarketFansEditComponent } from './market-fans-edit/market-fans-edit.component';
import { CanDeactivateVideoGuardActivate } from '@core/guards-activate/can-deactivate-video-guard.activate';
import { MarketFansBusinessDetailComponent } from './market-fans-business-detail/market-fans-business-detail.component';
import { FansProfitsComponent } from './market-fans-business-detail/fans-profits/fans-profits.component';

const routes: Routes = [

  { path: 'list', component: MarketFansListComponent },
  { path: 'list/detail', component: MarketFansBusinessDetailComponent },
  { path: 'profit/list', component: FansProfitsComponent },
  { path: 'list/edit', component: MarketFansEditComponent ,canDeactivate: [CanDeactivateVideoGuardActivate], }];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class MarketFansRoutingModule { }
